﻿using interfaceText;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace interfaceText
{
    interface IChineseable
    {
        void SayHello();
    }
 
}
public interface hjb
{
    void PrintC();
}
class Myclass : hjb
{
    public void PrintC()
    {
        throw new NotImplementedException();
        Console.WriteLine("This is MyClass");
    }
}
class YourClass : hjb
{
    public void PrintC()
    {
        throw new NotImplementedException();
        Console.WriteLine("This is YourClass");
    }

}
class Class
{
    public void WriteClass(hjb item)
    {
        item.PrintC();
        Console.WriteLine("****************");
    }
}
class MainClaa
{ 
    public static void Main(String[] args)
    {
        Class cs = new Class();
        hjb iClass;//这是我自己的
        iClass = new Myclass();
        cs.WriteClass(iClass);
        //这是你的
        iClass = new YourClass();
        cs.WriteClass(iClass);
    }
}

